<?php
namespace app\index\controller;

use app\BaseController;
use app\service\apixcxService;
use think\facade\View;

class Index extends BaseController
{
    public function gateway(){

    }
    public function index()
    {
        return View::fetch();
        $api=new apixcxService();
        $data["community_id"]="2025032500502007070019318103";//"SC200302441113288";
        $data["community_name"]="江南国际城";
        $data["company_code"]="SAASCHANNEL";//G100115971008750 SAASCHANNEL
        $data["company_name"]="龙湖物业";
        $data["city_name"]="杭州";
        $data["delivery_user_id"]="123";
        //$res=$api->faceimgquery(json_encode($data));
        $res=$api->test(json_encode($data));
        echo "<pre>";
        var_dump($res);

        //return "222";

    }
    public function index2()
    {
        $api=new apixcxService();
        $data["company_code"]="SAASCHANNEL";//G100115971008750 SAASCHANNEL
        $data["company_name"]="龙湖物业";
        $data["city_code"]="430100";
        $data["delivery_user_id"]="2088112618452297";
        //$res=$api->faceimgquery(json_encode($data));
        $res=$api->test2(json_encode($data));
        echo "<pre>";
        var_dump($res);

        //return "222";

    }

    public function hello($name = 'ThinkPHP6')
    {
        return 'hello,' . $name;
    }
}
